package file;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:字符流的写操作
 * User: 王圆豪
 * Date: 2025-05-11
 * Time: 18:19
 */
public class Demo12 {
    public static void main(String[] args) {
        try (Writer writer = new FileWriter("./test.txt",true)){
            writer.write('A');
            writer.write('B');
            writer.write('C');
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
